package com.woniuxy.springdataredis.mapper;

import com.woniuxy.springdataredis.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * description: UerMapper <br>
 * date: 2022/1/6 12:43 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */
@Mapper
public interface UerMapper {
    //查询所有的用户
    public List<User> findAll();

    //以用户ID查询
    public User findById(int id);

    public int delById(int id);
}
